package com.jintoufs.service.order.impl;

import com.jintoufs.dao.order.OrderMapper;
import com.jintoufs.service.order.OrderService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
@Transactional
public class OrderServiceImpl implements OrderService {
    @Resource
    private OrderMapper orderMapper;

    @Override
    public List<Map<String, Object>> getByParams(Map<String, Object> params) {
        return orderMapper.getByParams(params);
    }
    @Override
    public Integer getNewOrderCount(Map<String, Object> params) {
        return orderMapper.getNewOrderCount(params);
    }
}
